﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace Directory.Web
{
	public sealed class Manual : Panel
	{

		protected override void Render(HtmlTextWriter writer)
		{
			string strBegin = "<a class='helpLink' onclick='showHelpDoc()'>帮助</a><div id='helpDoc' style='display:none;'><a class='helpLink' onclick='hideHelpDoc();'>隐藏</a><br /><hr /><div class='" + this.CssClass + "'>";
			string strEnd = "</div></div>";
			string strScript = "<script type=\"text/javascript\">function showHelpDoc() {document.getElementById('helpDoc').style.display = '';}function hideHelpDoc() {document.getElementById('helpDoc').style.display = 'none';}</script>";

			//base.Render(writer);
			writer.Write(strBegin);
			base.RenderContents(writer);
			writer.Write(strEnd);
			writer.Write(strScript);
		}
	}
}